package com.wancaijinfu.widget;

import in.srain.cube.views.ptr.PtrFrameLayout;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
import android.widget.FrameLayout;

/**
 * @author Administrator
 * 
 */

public abstract class PullBaseActivity extends BaseActivity {
	private PtrFrameLayout mContentView;
	private LoadingView mLoadingView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContentView = new PtrFrameLayout(this);
		mContentView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
		if (customConfig_Ptr(mContentView)) {
			defaultConfig_Ptr();
		};
		AddBaseContentView(mContentView);
	}
	
	public void defaultConfig_Ptr() {
		
	}
	
	protected boolean customConfig_Ptr(PtrFrameLayout mContentView) {
		return false;
	}
}
